

const selectOptionsStore = defineStore(
    'selectOptionsStore',
    {
        state: () => ({
            selectShippingMethod: []
        }),
        actions: {
            setStore(data, key) {
                if (!data || !key) return
                this[key] = data
            },
            getOptions(fn) {
                if (typeof fn === 'function') fn()
            }
        },
        debounce: {
            getOptions: 1000
        }
    }
)

export default selectOptionsStore